﻿

using SiyinPractice.Domain.FileByUploadAndDown;
using SiyinPractice.Domain.Maintenance;
using SiyinPractice.Framework.Mapper;
using SiyinPractice.Shared.FileByUploadAndDown.Dto.File;
using SiyinPractice.Shared.Maintenance.Dto.AccountPassword;

namespace SiyinPractice.Application.FileByUploadAndDown.Mapper
{
    public class ObjectMapperConfigration : IObjectMapperConfigration
    {
        public IList<ObjectMapperCreater> ObjectMapperCreaterBuilder()
        {
            var mappingData = new List<ObjectMapperCreater>();

            mappingData.Add(new ObjectMapperCreater(typeof(FileUploadAndDownDto), typeof(FileUploadAndDown)).ReverseMap());
            mappingData.Add(new ObjectMapperCreater(typeof(CreateFileUploadAndDownDto), typeof(FileUploadAndDown)));
            mappingData.Add(new ObjectMapperCreater(typeof(AccountPasswordDto), typeof(AccountPassword)).ReverseMap());
            mappingData.Add(new ObjectMapperCreater(typeof(CreateAccountPasswordDto), typeof(AccountPassword)));

            return mappingData;
        }
    }
}